﻿<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
	<head>
	<base href="<%=basePath%>"/>
    <title>计算机工程学院团委管理系统 </title>
    <link href="themes/css/ui.login.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.json-2.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script type="text/javascript" src="Scripts/jquery-ui-1.8.custom.min.js"></script>
    <script src="Scripts/__loginValidate.js" type="text/javascript"></script>
 <script type="text/javascript" src="Scripts/ui.admincp.js"></script>
    <script type="text/javascript">
        var _DebugMode = false;
		var timer  ;

        
        function loadData(){
        	$.post("login!loadData.action","",function(data){ 
        	 
        		var _array = eval($.toJSON(data));
        		refreshNews(_array.newsList);
        		refreshNoticeList(_array.noticeList);
        		refreshRegulationList(_array.regulationList);
        	},"json");
        }
                function refreshNews(list){
        		 
        }
        function refreshNoticeList(list){
        		 
        }
        
        function refreshRegulationList(list){
        	 
        }
        
    
 $(function () {

            if (_DebugMode) {

                //自动登录..
                $("#txt_LoginID").val("admin");
                $("#txt_Password").val("admin");
                $("#btn_Login").click();
            }
            loadData();
            timer = setInterval("loadData()",30*1000);
            
        })

    </script>
    <style type="text/css">
        a
        {
            color: #4D84E3;
            text-decoration: none;
        }
        a:hover
        {
            color: #90B1EA;
            text-decoration: none;
        }
        ul.newsList
        {
            margin-left: 9px;
        }
        ul.newsList li
        {
            background-image: url('themes/default/images/menu-parent.gif');
            background-repeat: no-repeat;
            background-position: center left;
            padding-left: 9px;
        }
        ul.newsList li span, .newsDate
        {
            color: #b6973d;
            line-height: 25px;
            font-size: 10px;
            text-decoration: none;
            margin-left: 3px;
        }
        
        div.newslist-title
        {
            background-image: url('themes/default/images/layout_button_right.gif');
            background-repeat: no-repeat;
            background-position: center left;
            padding-left: 17px;
            color: Blue;
        }
    </style>
</head>
<body>
    <form id="form1">
    <div id="pw_box" class="" style="position: absolute; z-index: 10;">
    </div>
    <table border="0" style="margin-top: 6px; border-top: 1px solid #4c80fd;" cellpadding="0"
        cellspacing="0">
        <tr>
            <td style="width: 50%; padding-left:50px">
                <div class="news-entry" style="padding-top:60px">
                    <div class="newslist-title">
                        最近新闻 &nbsp;<a href="newsInfo!toShowNews.action"><span style="color: #FA891B">More...</span></a></div>      
                    <ul id="newsList1" class="newsList" style="list-style-type: none">
                    	<s:if test="newsList!= null && newsList.size != 0">
                    	<s:iterator value="newsList" var="item" status="no">
                        <li><a href="newsInfo!show.action?newsId=${item.newsId}"><s:property value="#no.count" />. ${item.title}</a><span class="newsDate"> ${item.strPublishTimeWithOutHour}</span></li>
                        </s:iterator></s:if><s:else>
                        <li>暂无新闻信息</li>
                        </s:else>
                    </ul>
                </div>
                <br/><br/><br/><br/>
                <div class="news-entry">
                    <div class="newslist-title">
                        规章制度 &nbsp;<a href="regulationInfo!toShowRegulation.action"><span style="color: #FA891B">More...</span></a></div>
                    <ul class="newsList" style="list-style-type: none">
                        <s:if test="regulationList!= null && regulationList.size != 0">
                        <s:iterator value="regulationList" var="item" status="no">
                        <li><a href="regulationInfo!show.action?regulationId=${item.regulationId}"><s:property value="#no.count" />. ${item.title}</a><span class="newsDate"> ${item.strPublishTimeWithOutHour}</span></li>
                        </s:iterator></s:if><s:else>
                        <li>暂无规章制度信息</li>
                        </s:else>
                    </ul>
                </div>
            </td>
            <td style="width: 50%;">
                <div id="main" style="">
                    <div id="wrap">
                        <div class="logo">
                            <div id="logo_Templete" style="font-size: x-large; font-family: 微软雅黑, Verdana;">
                                	登录
                            </div>
                        </div>
                    </div>
                    <div id="wrapb">
                    </div>
                    <div id="wrapc">
                        <div class="login">
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tbody>
                                    <tr>
                                        <th>
                                            	账&nbsp;&nbsp;&nbsp;号:
                                        </th>
                                        <td>
                                            <div class="logo-icon">
                                                <div class="pw">
                                                </div>
                                                <input class="input pw2" name="staffNo" id="txt_LoginID" type="text" style="width: 107px;" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                           	 密&nbsp;&nbsp;&nbsp;码:
                                        </th>
                                        <td>
                                            <div class="logo-icon">
                                                <div class="pwpd">
                                                </div>
                                                <input class="input pwpd2" type="password" id="txt_Password" name="staffPwd" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <th>
                                            	验证码:
                                        </th>
                                        <td>
                                            <div class="logo-icon">
                                                <div class="daan">
                                                </div>
                                                <input type="text" class="input pw2" name="tbxCaptcha" id="tbxCaptcha" value=" "
                                                    style="width: 107px;" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <td>
                                        </td>
                                        <td>
                                            <div class="logo-icon">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                        </th>
                                        <td valign="bottom">
                                            <input type="submit" id="btn_Login" name="btn_Login" value="登 录" style="margin-left: 1.5em;
                                                margin-top: .5em; width: 80px; height: 30px;" class="o-btn" />
                                            &nbsp;&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                        </th>
                                        <td style="padding: 5px;">
                                            <div id="desk" class="onShow" style="margin: 8px 0 0 0; color: Red;">
                                                &nbsp;&nbsp;
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                                <tr>
                                	<td colspan="2" style="padding-top:10px;padding-left:180px">
                                	<table>
                                	<tr><td><div class="newslist-title"><font color="red" size="3pt" style="font-weight:bolder;font-family: 微软雅黑">即将进行的会议通知</font> &nbsp;<a href="notice!queryNoticeShow.action"><span style="color: #FA891B">More...</span></a></div></td></tr>
                                	<tr><td>
                                	<marquee id="scrollarea" scrolldelay="10" direction="up" scrollamount="1" width="220" height="170" onMouseOver="this.stop();" onMouseOut="this.start();" style="font-size: 10pt">
                                	   	<s:if test="noticeList!= null && noticeList.size != 0">
                                	   	<s:iterator value="noticeList" var="item">
                                	   	<a href="#" target="" style="font-size: 14px; color: #C00000; text-decoration: none"><div align="center">${item.title }</div>
                                	   		 <br/>
					 						 <span style="font-size: 12px; color: #000000; text-decoration: none; line-height:1.5">
					 						 	<div style="text-align:justify; WORD-WRAP:break-word ;text-justify:inter-ideograph; ">
                                	   			会议内容：${item.content}<br/>
                                	   			开始时间：${item.strStartTime}<br/>
                                	   			结束时间：${item.strEndTime}<br/>
                                	   			会议地点：${item.place}<br/>
                                	   			<span class="newsDate">发布时间：${item.strPublishTime}</span>
                                	   			</div>
                                	   		 </span>
                                	   	</a><br/><br/>
                                	   	</s:iterator>
                                	   	</s:if><s:else>
                                	   	<span style="font-size: 12px; color: #000000; text-decoration: none; line-height:1.5">
					 						 	<div style="text-align:justify; WORD-WRAP:break-word ;text-justify:inter-ideograph; ">
					 							近期暂无即将进行的会议通知...
					 					</div></span>
                                	   	</s:else>
                                	</marquee>
                                	</td></tr>
                                	</table>
                                	</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <div class="bottom"> 
        计算机工程学院团委管理系统 <span style="color: #FA891B">v1.0</span>
    </div>
    </form>
</body>
</html>
